package com.errands.cn.mapper;

import com.errands.cn.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface OrdersMapper {
    int deleteByPrimaryKey(String oId);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(String oId);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<Orders> selectByPrimarySelectKey(Orders record);

    List<Orders> selectByPrice(@Param("minPrice") Integer minPrice,@Param("maxPrice") Integer maxPrice,
                               @Param("title") String title,@Param("goodsType") Integer goodsType,@Param("oType") Integer oType);
}